//
//  CityTableViewCell.m
//  XRSquare
//
//  Created by UaenaMo on 2018/8/16.
//  Copyright © 2018年 UaenaMo. All rights reserved.
//

#import "CityTableViewCell.h"

@interface CityTableViewCell ()
{
    UILabel * contentLabel;
}
@end

@implementation CityTableViewCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier])
    {
        contentLabel = [[UILabel alloc]initWithFrame:CGRectMake(10, 10, ScreenWidth, 20)];
        contentLabel.font = [UIFont systemFontOfSize:15];
        [self addSubview:contentLabel];
        
        UIView * linne = [[UIView alloc]initWithFrame:CGRectMake(0, 39, ScreenWidth, 1)];
        linne.backgroundColor = [UIColor colorFromHexCode:@"f3f3f3"];
        [self addSubview:linne];
    }
    return self;
}

+(CGFloat)height
{
    return 40;
}

-(void)loadData:(NSString *)data
{
    contentLabel.text = data;
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
